module.exports.getCurrentPages = () => {
  const pages = getCurrentPages()
  const currentPage = pages[pages.length - 1]
  return currentPage
}

module.exports.hasRoute = () => {
  const pages = getCurrentPages()
  const currentPage = pages[pages.length - 1]
  const route = currentPage.route
  const hasRoute = ['pages/index/index'].includes(route)
  return hasRoute
}